home *** CD-ROM | disk | FTP | other *** search
- Path: news.cyberport.com!usenet
- From: tangent@cyberport.com (Warren Young)
- Newsgroups: comp.lang.c++
- Subject: Re: C vs Pascal
- Date: Sat, 03 Feb 1996 08:49:07 GMT
- Organization: ETR..., Inc.
- Message-ID: <31131f4c.409999808@news.cyberport.com>
- References: <8B87053.0054014A15.uuout@swcbbs.com> <8B8F52F.0054014CDF.uuout@swcbbs.com> <4e0huu$rhn@classic.iinet.com.au> <310ab831.512924160@news.cyberport.com> <DOTDxg2yqHDV083yn@iaccess.za>
- NNTP-Posting-Host: ppp17.cyberport.com
- X-Newsreader: Forte Agent .99c/16.141
-
- vincer@iaccess.za (Vince Risi) wrote:
-
- >> o Separate compilation (UNITs and modules)
- >
- >C and C++ do not support separate compilation, only independant
- >compilation. Mores the pity. UCSD Pascal introduced units based
- >on a 1971 paper on separate versus independant compilation.
-
- Could you please explain this? I've never heard the term "independent
- compilation". Besides, Brian Kernighan thinks C has separate
- compilation -- whatver it has, that's what he calls it, anyway.
-
- >> o A more powerful base language -- Try writing writeln() in Pascal
- >> sometime. You can't do it because the language doesn't support vararg
- >> functions, so the language had to have that function defined into it.
- >> Same goes for ord() and more. None of the functions in the C/C++
- >> standard are built into the language, because they don't have to be.
- >
- >Check out format in Delphi. A better printf than printf. Typesafe.
- >Nudge nudge, wink wink, say no more.
-
- Wonderful and fine, but that's not the point. writeln was just an
- example. Besides, this is degenerating into an implementation
- argument, not a language argument. Every time Borland comes out with
- a new Pascal flagship, the argument changes. Pascal (despite
- Borland's best efforts, and they're arguably in the charge's vanguard)
- still doesn't have portability and a controlling standard. If you
- doubt the importance of either of these, RSVP and I'll lay it on ya.
- B-)
-
- >> o Pointer arithmetic -- try writing strcpy() in Pascal. Or anything
- >> else that manipulates blocks of memory. Related to this is that,
- >> because the size of an array is a part of its type, you can't have
- >> general-purpose memory-block manipulation routines.
- >
- >Piece of old tacky. Check out the strings unit for TP6.0 only
- >4 years old by now.
-
- Again, another example of why I shouldn't have bothered. That
- argument is great for DOS/Windows people (or just Windows people in
- the case of Delphi), but everyone else is SOL. Maybe there are other
- Pascals out there that have similar facilities, but I doubt that any
- of them are really compatible.
-
- >Get a life, have fun, check out Delphi, it is way COOL (and mainstream).
-
- Do _you_ have an extra $200 floating around? I first need a project,
- and to have a project, I need time, and since I _have_ a life, I don't
- have time. Maybe when we get back into quickie custom programming at
- work....
-
- = Warren --
-